package com.coda.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 用户学习进度
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UserWord implements Serializable {
    //主键
    private Integer id;
    //用户id
    private Integer userId;
    //单词id
    private Integer wordId;
    //默写时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
}
